using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmMasPurchaseType")]
    public class MasPurchaseType
    {
        public MasPurchaseType()
        {
            //this.MasPurchaseMethods = new HashSet<MasPurchaseMethod>();
            //this.PurchaseMappingBudgets = new HashSet<PurchaseMappingBudget>();
        }
    
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PcTypeId", ResourceType = typeof(Resources.MasPurchaseTypeResource))]
        public int PcTypeId { get; set; }

		[DataMember, Display(Name = "PcTypeName", ResourceType = typeof(Resources.MasPurchaseTypeResource))]
        public string PcTypeName { get; set; }

		[DataMember, Display(Name = "PcTypeDescr", ResourceType = typeof(Resources.MasPurchaseTypeResource))]
        public string PcTypeDescr { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		public int? CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		public DateTime? CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        public int? UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		public DateTime? UpdatedWhen { get; set; }

		[DataMember, Display(Name = "RestoredBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		public int? RestoredBy { get; set; }
    
		[DataMember, Display(Name = "RestoredWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        public DateTime? RestoredWhen { get; set; }

        //[DataMember]
        //public virtual ICollection<MasPurchaseMethod> MasPurchaseMethods { get; set; }

        //[DataMember]
        //public virtual ICollection<PurchaseMappingBudget> PurchaseMappingBudgets { get; set; }

    }
}